package com.dhwl.hsh.driver;

import android.app.Application;
import android.content.Context;

import com.dhwl.hsh.lib.utils.logger.LogLevel;
import com.dhwl.hsh.lib.utils.logger.Logger;
import com.tencent.bugly.crashreport.CrashReport;

/**
 * 简要描述
 *
 * @author Derek.Kidd
 * @version V1.0.0
 * @date 2016-04-11 18:27
 */
public class HshApplication extends Application {
    public static Context mContext;

//    public static LiteOrm sDb;

    @Override
    public void onCreate() {
        super.onCreate();
        mContext = this;
//Bugly init
        CrashReport.initCrashReport(getApplicationContext());
        Logger.init().logLevel(LogLevel.FULL);//Use LogLevel.NONE for the release versions.

//        sDb = LiteOrm.newSingleInstance(this, DB_NAME);
//        if (BuildConfig.DEBUG) {
//            sDb.setDebugged(true);
//        }
    }


    @Override
    public void onTerminate() {
        super.onTerminate();
    }

    @Override
    public void onLowMemory() {
        super.onLowMemory();
    }
}
